﻿using System.ComponentModel;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Library.WebControls.SimplePaging {
	internal class ZeroLable : Label {
		[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
		public bool FirstSpace { get; set; }
		protected override void Render(HtmlTextWriter writer) {
			//LiteralControl space = new LiteralControl(" ");
			//space.RenderControl(writer);
			if (FirstSpace) writer.Write("&nbsp;");
			//writer.Write("t"););
			base.Render(writer);
		}
		[DefaultValue("0")]
		public override string Text {
			get {
				return base.Text;
			}
			set {
				base.Text = value;
			}
		}
	}
}

